package mail.message;

import javax.mail.Message;

import mail.db.DataBase;
import mail.owner.Owner;


public class MailMessage {
	public static final String TABLE = "messages";
	public static final String ID = "id";
	public static final String THREAD = "thread";
	public static final String TO = "to";
	public static final String CC = "cc";
	public static final String BODY = "body";
	public static final String TIME = "time";
	public static final String STATUS = "status";
	
	private DataBase db;
	
	private int id;
	private Owner owner;
	private Message message;

	public MailMessage(Owner owner, Message message) {
		this(owner, message, DataBase.getInstance());
	}
	
	private MailMessage(Owner owner, Message message, DataBase db) {
		this.owner = owner;
		this.message = message;
		this.db = db;
	}
	
	
	public int getID() { return id; }
	public Owner getOwner() { return owner; }
	public Message getMessage() { return message; }
}
